/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package ke.me.muhia.spring.masomo.amqp;

import java.util.concurrent.CountDownLatch;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 *
 * @author Kenneth
 */
public class Receiver {

    private final Logger logger = LoggerFactory.getLogger(getClass());

    private CountDownLatch latch = new CountDownLatch(1);

    public Receiver() {

    }

    public Receiver(int i) {
        this.latch = new CountDownLatch(i);
    }

    public void receiveMessage(String msg) {
        try {
            
        } catch (Exception e) {
            logger.error(e.getMessage(), e);
        }

    }

    /**
     * @return the latch
     */
    public CountDownLatch getLatch() {
        return latch;
    }

}
